package com.lv.controller;

import com.lv.data.Result;
import com.lv.service.ItemPageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("itempage")
public class ItemPageController {
    @Autowired
    private ItemPageService is;

    @RequestMapping("createPage")
    @ResponseBody
    public Result createPage(Long goodsId){
        is.createPage(goodsId);
        return Result.OK();
    }
}
